package com.ocom.common.entity.card;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.ocom.common.entity.base.EntityCardBase;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

@Data
@JsonInclude(JsonInclude.Include.NON_NULL)
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName(value = "card_record")
public class EntityCardRecord implements Serializable {

  private static final long serialVersionUID = -3741805762193460158L;
  @TableId(value = "id", type = IdType.AUTO)
  private Long id;
  private Long comId;
  private String accountNo;
  private Long pId;
  private Long accTypeId;
  private String cardNo;
  private String dayTime;
  private Long operationType;
  private Long costFee;
  private Long deposit;
  private String createUser;
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+08")
  @TableField(fill = FieldFill.INSERT)
  private Date createTime;

  @TableField(exist = false)
  private int costFeeSum;
  @TableField(exist = false)
  private int issuingTimes;
  @TableField(exist = false)
  private int lossTimes;
  @TableField(exist = false)
  private int unwindTimes;
  @TableField(exist = false)
  private int checkoutTImes;
}
